home *** CD-ROM | disk | FTP | other *** search
- SETENV
-
- Sets a global variable.
-
- Format
-
- SETENV [<name>] [<string...>]
-
- Template
-
- NAME,STRING/F
-
- Location
-
- Internal
-
- SETENV with no arguments lists the current global variables.
-
- SETENV with <name> and <string> arguments creates a new global environment
- variable. The first word after SETENV is taken as the <name>. Everything else
- on the command line is taken as the <string> argument. Quotation marks are
- not required.
-
- Global variables are stored in the ENV: directory and are available to all
- processes. However, if a local variable (defined by SET) and a global
- variable share the same name, the local variable is used.
-
- Environment variables are called by scripts or other commands by including a
- dollar sign ($) in front of the variable name.
-
- To remove a global variable definition, use the UNSETENV command.
-
- Example 1:
-
- 1> SETENV Editor Extras:Tools/MEmacs
-
- creates the environment variable Editor That can be used with the MORE
- utility. This specifies the editor as MEmacs, located in the Tools drawer of
- EXTRAS:. The variable Editor is available in any Shell.
-
- Example 2:
-
- 1> SETENV Editor C:ED
-
- same as above, only the editor specified is ED.
-
- 1> ECHO $Editor
- C:ED
-
- See also: GETENV, UNSETENV
-